package com.gblfy.email.controller;

import com.gblfy.email.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 邮件服务入口
 *
 * @author gblfy
 * @date 2021-10-12
 */
@RestController
public class EmailController {

    @Autowired
    private EmailService emailService;

    //http://localhost:8080/checkInformEmailNotice
    @GetMapping("/checkInformEmailNotice")
    public String checkInformEmailNotice() {
        emailService.checkInformEmailNotice();
        return "SEND EMAIL SUCCESS";
    }


    //http://localhost:8080/loadEmailNotice
    @GetMapping("/loadEmailNotice")
    public String loadEmailNotice() {
        emailService.loadEmailNotice();
        return "SEND EMAIL SUCCESS";
    }
}
